package com.jkl.untils;

public class StrUtil {
    /**
     * 字符串右侧补0
     *
     * @param str
     * @param strLength
     * @return
     */
    public static String addZeroRight(String str, int strLength) {
        int strLen = str.length();
        StringBuffer sb = null;
        while (strLen < strLength) {
            sb = new StringBuffer();
            sb.append(str).append("0");
            str = sb.toString();
            strLen = str.length();
        }
        return str;
    }
}
